package com.wxyzz.common.core.utils;

/**
 * --- 加油，努力 ---
 *
 * @Author XYP
 * @Date 2024/10/30
 * @Solgne 从想做到能做
 * @Desc
 */
public class UserUtils {
    private static ThreadLocal<Integer> threadLocal = new ThreadLocal<>();

    public static void setUid(Integer uid) {
        threadLocal.set(uid);
    }

    public static Integer getUid() {
        return threadLocal.get();
    }

    public static void removeUid() {
        threadLocal.remove();
    }

}
